unit uEditText;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, Buttons, ComCtrls;

type
  TfEditText = class(TForm)
    BitBtn1: TBitBtn;
    BitBtn4: TBitBtn;
    RE: TRichEdit;
    procedure BitBtn1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  fEditText: TfEditText;

implementation

uses uDiaBoxEdit;

{$R *.dfm}

procedure TfEditText.BitBtn1Click(Sender: TObject);
var
  I: Integer;
  S: string;
begin
  S := '';
  for I := 0 to RE.Lines.Count - 1 do
    S := S + RE.Lines[I] + #32;
  fDiaBoxEdit.Edit1.Text := Trim(S);
end;

end.
